﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:nComponents="clr-namespace:nRoute.Components;assembly=nRoute.Toolkit"
	xmlns:local="clr-namespace:Orktane.Components">
	
	    <local:ConsoleColorValueConverter x:Key="ConsoleColorValueConverter"/>
	    <nComponents:ValueRelay x:Name="ConsoleKeyInfoRelay"/>
        <nComponents:ValueConverterRelay x:Name="InReadKeyModeConverterRelay"/>
        <nComponents:ValueConverterRelay x:Name="NullToEmptyStringConverterRelay"/>

        <!-- CONSOLE TEXT BOX, with special disabled and read-only visuals -->
        <Style x:Key="ConsoleTextBoxStyle" TargetType="TextBox">
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Background" Value="#FFFFFFFF"/>
			<Setter Property="Foreground" Value="#FF000000"/>
			<Setter Property="Padding" Value="2"/>
			<Setter Property="BorderBrush">
				<Setter.Value>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFA3AEB9" Offset="0"/>
						<GradientStop Color="#FF8399A9" Offset="0.375"/>
						<GradientStop Color="#FF718597" Offset="0.375"/>
						<GradientStop Color="#FF617584" Offset="1"/>
					</LinearGradientBrush>
				</Setter.Value>
			</Setter>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="TextBox">
						<Grid x:Name="RootElement">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="ReadOnly"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames 
                                                BeginTime="00:00:00" Duration="00:00:00.0010000"
                                                Storyboard.TargetName="MouseOverElement" 
                                                Storyboard.TargetProperty="(UIElement.Opacity)">
												<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Unfocused"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="ValidationStates">
									<VisualState x:Name="Valid"/>
									<VisualState x:Name="InvalidUnfocused"/>
									<VisualState x:Name="InvalidFocused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="Border" Opacity="1" 
                                    Background="{TemplateBinding Background}" 
                                    BorderBrush="{TemplateBinding BorderBrush}" 
                                    BorderThickness="{TemplateBinding BorderThickness}">
								<Grid Background="Transparent">
									<Rectangle x:Name="MouseOverElement" Opacity="0"
                                            HorizontalAlignment="Left" Width="1" Margin="-1,0,0,0"
                                            Fill="#E5FFFFFF" StrokeThickness="0"/>
									<Grid x:Name="ContentElement" 
                                          Margin="{TemplateBinding Padding}"/>
								</Grid>
							</Border>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
    
        <!-- SCROLL BAR -->
	    <Style x:Key="ConsoleScrollBarStyle" TargetType="ScrollBar">
		    <Setter Property="MinWidth" Value="17"/>
		    <Setter Property="MinHeight" Value="17"/>
		    <Setter Property="IsTabStop" Value="False"/>
		    <Setter Property="Template">
			    <Setter.Value>
				    <ControlTemplate TargetType="ScrollBar">
					    <Grid x:Name="Root">
						    <Grid.Resources>
							    <ControlTemplate x:Key="RepeatButtonTemplate" TargetType="RepeatButton">
								    <Grid x:Name="Root" Background="Transparent">
									    <VisualStateManager.VisualStateGroups>
										    <VisualStateGroup x:Name="CommonStates">
											    <VisualState x:Name="Normal"/>
										    </VisualStateGroup>
									    </VisualStateManager.VisualStateGroups>
								    </Grid>
							    </ControlTemplate>
							    <ControlTemplate x:Key="HorizontalIncrementTemplate" TargetType="RepeatButton">
								    <Grid x:Name="Root">
									    <VisualStateManager.VisualStateGroups>
										    <VisualStateGroup x:Name="CommonStates">
											    <VisualState x:Name="Normal">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="MouseOver">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FFA5A5A5"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Pressed">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="Black"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Disabled">
												    <Storyboard>
													    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
														    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
													    </DoubleAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
										    </VisualStateGroup>
									    </VisualStateManager.VisualStateGroups>
									    <Rectangle x:Name="Background" Fill="#FF1F3B53" StrokeThickness="1" RadiusX="2" RadiusY="2" Opacity="0" Stroke="{x:Null}"/>
									    <Path x:Name="path" Stretch="Uniform" Height="8" Width="4" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z ">
										    <Path.Fill>
											    <SolidColorBrush x:Name="ButtonColor" Color="#FF333333"/>
										    </Path.Fill>
									    </Path>
								    </Grid>
							    </ControlTemplate>
							    <ControlTemplate x:Key="HorizontalDecrementTemplate" TargetType="RepeatButton">
								    <Grid x:Name="Root">
									    <VisualStateManager.VisualStateGroups>
										    <VisualStateGroup x:Name="CommonStates">
											    <VisualState x:Name="Normal">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="MouseOver">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FFA5A5A5"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Pressed">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="Black"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Disabled">
												    <Storyboard>
													    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
														    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
													    </DoubleAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
										    </VisualStateGroup>
									    </VisualStateManager.VisualStateGroups>
									    <Rectangle x:Name="Background" Fill="#FF1F3B53" StrokeThickness="1" RadiusX="2" RadiusY="2" Opacity="0" Stroke="{x:Null}"/>
									    <Path x:Name="path" Stretch="Uniform" Height="8" Width="4" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z ">
										    <Path.Fill>
											    <SolidColorBrush x:Name="ButtonColor" Color="#FF333333"/>
										    </Path.Fill>
									    </Path>
								    </Grid>
							    </ControlTemplate>
							    <ControlTemplate x:Key="VerticalIncrementTemplate" TargetType="RepeatButton">
								    <Grid x:Name="Root">
									    <VisualStateManager.VisualStateGroups>
										    <VisualStateGroup x:Name="CommonStates">
											    <VisualState x:Name="Normal">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="MouseOver">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#E5767474"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Pressed">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#99FFFFFF"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Disabled">
												    <Storyboard>
													    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
														    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
													    </DoubleAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
										    </VisualStateGroup>
									    </VisualStateManager.VisualStateGroups>
									    <Rectangle x:Name="Background" Fill="#001F3B53" StrokeThickness="1" RadiusX="2" RadiusY="2" Stroke="{x:Null}"/>
									    <Path x:Name="path" Stretch="Uniform" Height="4" Width="8" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z ">
										    <Path.Fill>
											    <SolidColorBrush x:Name="ButtonColor" Color="#7F767474"/>
										    </Path.Fill>
									    </Path>
								    </Grid>
							    </ControlTemplate>
							    <ControlTemplate x:Key="VerticalDecrementTemplate" TargetType="RepeatButton">
								    <Grid x:Name="Root">
									    <VisualStateManager.VisualStateGroups>
										    <VisualStateGroup x:Name="CommonStates">
											    <VisualState x:Name="Normal">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="Transparent"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="MouseOver">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#E5767474"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Pressed">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#99FFFFFF"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Disabled">
												    <Storyboard>
													    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
														    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
													    </DoubleAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
										    </VisualStateGroup>
									    </VisualStateManager.VisualStateGroups>
									    <Rectangle x:Name="Background" Fill="#FF1F3B53" StrokeThickness="1" RadiusX="2" RadiusY="2" Opacity="0" Stroke="{x:Null}"/>
									    <Path x:Name="path" Stretch="Uniform" Height="4" Width="8" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z ">
										    <Path.Fill>
											    <SolidColorBrush x:Name="ButtonColor" Color="#7F767474"/>
										    </Path.Fill>
									    </Path>
								    </Grid>
							    </ControlTemplate>
							    <ControlTemplate x:Key="VerticalThumbTemplate" TargetType="Thumb">
								    <Grid>
									    <VisualStateManager.VisualStateGroups>
										    <VisualStateGroup x:Name="CommonStates">
											    <VisualState x:Name="Normal"/>
											    <VisualState x:Name="MouseOver">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#E5767474"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Pressed">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#99FFFFFF"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Disabled">
												    <Storyboard>
													    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity">
														    <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
													    </DoubleAnimationUsingKeyFrames>
													    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
														    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
													    </DoubleAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
										    </VisualStateGroup>
									    </VisualStateManager.VisualStateGroups>
									    <Grid x:Name="ThumbVisual" Margin="1,0,1,0">
										    <Rectangle x:Name="Background" StrokeThickness="0" Fill="#7F767474" Margin="5,2" RadiusX="2" RadiusY="2"/>
									    </Grid>
								    </Grid>
							    </ControlTemplate>
							    <ControlTemplate x:Key="HorizontalThumbTemplate" TargetType="Thumb">
								    <Grid>
									    <VisualStateManager.VisualStateGroups>
										    <VisualStateGroup x:Name="CommonStates">
											    <VisualState x:Name="Normal"/>
											    <VisualState x:Name="MouseOver">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FF767676"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Pressed">
												    <Storyboard>
													    <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
														    <EasingColorKeyFrame KeyTime="00:00:00" Value="#FF262626"/>
													    </ColorAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
											    <VisualState x:Name="Disabled">
												    <Storyboard>
													    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ThumbVisual" Storyboard.TargetProperty="Opacity">
														    <SplineDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
													    </DoubleAnimationUsingKeyFrames>
													    <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
														    <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
													    </DoubleAnimationUsingKeyFrames>
												    </Storyboard>
											    </VisualState>
										    </VisualStateGroup>
									    </VisualStateManager.VisualStateGroups>
									    <Grid x:Name="ThumbVisual" Margin="1,0,1,0">
										    <Rectangle x:Name="Background" StrokeThickness="0" RadiusX="2" RadiusY="2" Fill="#FF393939"/>
									    </Grid>
								    </Grid>
							    </ControlTemplate>
						    </Grid.Resources>
						    <VisualStateManager.VisualStateGroups>
							    <VisualStateGroup x:Name="CommonStates">
								    <VisualState x:Name="Normal"/>
								    <VisualState x:Name="MouseOver"/>
								    <VisualState x:Name="Disabled">
									    <Storyboard>
										    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
											    <SplineDoubleKeyFrame KeyTime="0" Value="0.5"/>
										    </DoubleAnimationUsingKeyFrames>
									    </Storyboard>
								    </VisualState>
							    </VisualStateGroup>
						    </VisualStateManager.VisualStateGroups>
						    <Grid x:Name="HorizontalRoot">
							    <Grid.ColumnDefinitions>
								    <ColumnDefinition Width="Auto"/>
								    <ColumnDefinition Width="Auto"/>
								    <ColumnDefinition Width="Auto"/>
								    <ColumnDefinition Width="*"/>
								    <ColumnDefinition Width="Auto"/>
							    </Grid.ColumnDefinitions>
							    <Rectangle Stroke="Transparent" StrokeThickness="1" RadiusX="1" RadiusY="1" Grid.ColumnSpan="5"/>
							    <Rectangle Stroke="Transparent" StrokeThickness="1" RadiusX="1" RadiusY="1" Grid.ColumnSpan="5"/>
							    <Rectangle StrokeThickness="1" RadiusX="1" RadiusY="1" Opacity=".375" Grid.ColumnSpan="5"/>
							    <Rectangle RadiusX="1" RadiusY="1" Margin="1" Grid.ColumnSpan="5"/>
							    <RepeatButton x:Name="HorizontalSmallDecrease" Margin="1" Width="16" IsTabStop="False" Template="{StaticResource HorizontalDecrementTemplate}" Grid.Column="0" Interval="50"/>
							    <RepeatButton x:Name="HorizontalLargeDecrease" Width="0" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="1" Interval="50"/>
							    <Thumb x:Name="HorizontalThumb" MinWidth="18" Width="10" Template="{StaticResource HorizontalThumbTemplate}" Grid.Column="2" Background="{x:Null}" Margin="0,5" BorderBrush="{x:Null}"/>
							    <RepeatButton x:Name="HorizontalLargeIncrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="3" Interval="50"/>
							    <RepeatButton x:Name="HorizontalSmallIncrease" Margin="1" Width="16" IsTabStop="False" Template="{StaticResource HorizontalIncrementTemplate}" Grid.Column="4" Interval="50"/>
						    </Grid>
						    <Grid x:Name="VerticalRoot" Visibility="Collapsed">
							    <Grid.RowDefinitions>
								    <RowDefinition Height="Auto"/>
								    <RowDefinition Height="Auto"/>
								    <RowDefinition Height="Auto"/>
								    <RowDefinition Height="*"/>
								    <RowDefinition Height="Auto"/>
							    </Grid.RowDefinitions>
							    <Rectangle StrokeThickness="1" RadiusX="1" RadiusY="1" Grid.RowSpan="5"/>
							    <Rectangle StrokeThickness="1" RadiusX="1" RadiusY="1" Opacity=".375" Grid.RowSpan="5"/>
							    <Rectangle RadiusX="1" RadiusY="1" Margin="1" Grid.RowSpan="5"/>
							    <RepeatButton x:Name="VerticalSmallDecrease" Height="14" Margin="1" IsTabStop="False" Template="{StaticResource VerticalDecrementTemplate}" Grid.Row="0" Interval="50"/>
							    <RepeatButton x:Name="VerticalLargeDecrease" Height="0" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="1" Interval="50"/>
							    <Thumb x:Name="VerticalThumb" Height="10" MinHeight="18" Template="{StaticResource VerticalThumbTemplate}" Grid.Row="2" Background="{x:Null}" BorderBrush="{x:Null}" Padding="3,0"/>
							    <RepeatButton x:Name="VerticalLargeIncrease" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="3" Interval="50"/>
							    <RepeatButton x:Name="VerticalSmallIncrease" Height="14" Margin="1" IsTabStop="False" Template="{StaticResource VerticalIncrementTemplate}" Grid.Row="4" Interval="50"/>
						    </Grid>
					    </Grid>
				    </ControlTemplate>
			    </Setter.Value>
		    </Setter>
	    </Style>
		
        <!-- SCROLL VIEWER -->
	    <Style x:Key="ConsoleScrollViewerStyle" TargetType="ScrollViewer">
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
        <Setter Property="Padding" Value="4"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFA3AEB9" Offset="0"/>
                    <GradientStop Color="#FF8399A9" Offset="0.375"/>
                    <GradientStop Color="#FF718597" Offset="0.375"/>
                    <GradientStop Color="#FF617584" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ScrollViewer">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2">
                        <Grid Background="{TemplateBinding Background}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <ScrollContentPresenter x:Name="ScrollContentPresenter" Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                            <Rectangle Fill="#FFE9EEF4" Grid.Column="1" Grid.Row="1"/>
                            <ScrollBar x:Name="VerticalScrollBar" Margin="0,-1,-1,-1" Width="18" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" IsTabStop="False" Grid.Column="1" Grid.Row="0" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{TemplateBinding VerticalOffset}" Orientation="Vertical" ViewportSize="{TemplateBinding ViewportHeight}" Style="{StaticResource ConsoleScrollBarStyle}"/>
                            <ScrollBar x:Name="HorizontalScrollBar" Height="18" Margin="-1,0,-1,-1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" IsTabStop="False" Grid.Column="0" Grid.Row="1" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{TemplateBinding HorizontalOffset}" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>